//
//  ShakeComponent.h
//  cake
//
//  Created by luotianqiang1 on 17/2/28.
//
//

#ifndef ShakeComponent_hpp
#define ShakeComponent_hpp

#include "AccleRoteComponent.h"
#include "TouchNodeComponent.h"

class ShakeComponent : public AccleComponent {
    DECLARE_COMPONENT_DYNCLASS(ShakeComponent);
public:
    ShakeComponent();
    virtual bool init();
protected:
     virtual void dispatcherAccelEvent(Acceleration *, Event *);
private:
    Vec3 _preShakeAccel;
    bool isFirst;
public:
    static const std::string shakeStart;
    static const std::string shakeStop;
};

#endif /* ShakeComponent_hpp */
